package com.technology.collection;

import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;

public class ListIteratorUsing {
	
	public static void main(String[] args) {
		List<String> strList = new LinkedList<String>();
		for (int i = 1; i < 100; i++){
			strList.add(i + "");
		}
		
		ListIterator<String> iter = strList.listIterator();
		iter.next();
		iter.next();
		System.out.println(iter.previous());
		
	}
}
